package
{
	import flash.display.Sprite;
	
	import sangpil.events.SimpleLoaderEvent;
	import sangpil.net.SimpleLoader;

	[SWF(width = 550, height = 400, frameRate=30, backgroundColor = 0x000000)]
	public class TestSimpleLoader extends Sprite
	{
		public function TestSimpleLoader()
		{
			super();
			trace("test simple loader start");
			
			var simple:SimpleLoader = new SimpleLoader();
			simple.addEventListener(SimpleLoaderEvent.COMPLETED, onComplete);
			simple.load("./swfAsset/sampleSwf.swf");
		}
		
		private function onComplete(e:SimpleLoaderEvent):void
		{
			trace("test success = ", e.content);
			this.addChild(e.content);
		}
		
	}
}